home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Windows / WindowUpdater.h < prev   
Text File  |  2000-06-23  |  390b  |  29 lines

  1. // WindowUpdater.h
  2.  
  3. #ifndef WindowUpdater_h
  4. #define WindowUpdater_h
  5.  
  6. #ifndef WindowObject_h
  7. #include "WindowObject.h"
  8. #endif
  9.  
  10. class WindowUpdater
  11.   {
  12.     private:
  13.         WindowObject& window;
  14.         
  15.     public:
  16.         WindowUpdater( WindowObject& theWindow )
  17.           : window( theWindow )
  18.           {
  19.             BeginUpdate( &window.Port() );
  20.           }
  21.         
  22.         ~WindowUpdater()
  23.           {
  24.             EndUpdate( &window.Port() );
  25.           }
  26.   };
  27.  
  28. #endif
  29.